package com.xmy.solution.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xmy.common.annotation.Excel;
import com.xmy.common.core.domain.BaseEntity;

/**
 * 聊天管理对象 xmy_chat
 * 
 * @author 夏明毅
 * @date 2025-02-20
 */
public class Chat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 对话框ID */
    @Excel(name = "对话框ID")
    private Long dialogueId;

    /** 对话内容 */
    @Excel(name = "对话内容")
    private String dialogueContent;

    /** 用户类型, 0是客服，1是小程序用户 */
    @Excel(name = "用户类型, 0是客服，1是小程序用户")
    private Long userType;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDialogueId(Long dialogueId) 
    {
        this.dialogueId = dialogueId;
    }

    public Long getDialogueId() 
    {
        return dialogueId;
    }
    public void setDialogueContent(String dialogueContent) 
    {
        this.dialogueContent = dialogueContent;
    }

    public String getDialogueContent() 
    {
        return dialogueContent;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dialogueId", getDialogueId())
            .append("dialogueContent", getDialogueContent())
            .append("userType", getUserType())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
